package com.hbt.orderfood.utils;

import android.os.Handler;

public class ThreadUtils {

    //子线程
    public static void runInThread(Runnable task){
        new Thread(task).start();
    }

    public static Handler mHandler = new Handler();

    //主UI线程
    public static void runInUIThread(Runnable task){
        mHandler.post(task);
    }


}
